// default package
// Generated 28 Jul, 2014 8:04:07 PM by Hibernate Tools 3.4.0.CR1
package com.galaxy.bean;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * CustomerEntity generated by hbm2java
 */
@Entity
@Table(name = "customer_entity", catalog = "magento")
public class CustomerEntity implements java.io.Serializable {

	private Integer entityId;
	private CoreWebsite coreWebsite;
	private CoreStore coreStore;
	private short entityTypeId;
	private short attributeSetId;
	private String email;
	private short groupId;
	private String incrementId;
	private Date createdAt;
	private Date updatedAt;
	private short isActive;
	private Set tags = new HashSet(0);
	private Set salesruleCustomers = new HashSet(0);
	private Set persistentSessions = new HashSet(0);
	private Set reviewDetails = new HashSet(0);
	private Set customerEntityDecimals = new HashSet(0);
	private Set wishlists = new HashSet(0);
	private Set catalogCompareItems = new HashSet(0);
	private Set productAlertStocks = new HashSet(0);
	private Set customerEntityDatetimes = new HashSet(0);
	private Set customerEntityInts = new HashSet(0);
	private Set productAlertPrices = new HashSet(0);
	private Set salesFlatOrders = new HashSet(0);
	private Set tagRelations = new HashSet(0);
	private Set salesBillingAgreements = new HashSet(0);
	private Set reportViewedProductIndexes = new HashSet(0);
	private Set customerEntityVarchars = new HashSet(0);
	private Set customerEntityTexts = new HashSet(0);
	private Set customerAddressEntities = new HashSet(0);
	private Set salesRecurringProfiles = new HashSet(0);
	private Set salesruleCouponUsages = new HashSet(0);
	private Set salesFlatOrderGrids = new HashSet(0);
	private Set downloadableLinkPurchaseds = new HashSet(0);
	private Set reportComparedProductIndexes = new HashSet(0);

	public CustomerEntity() {
	}

	public CustomerEntity(short entityTypeId, short attributeSetId,
			short groupId, Date createdAt, Date updatedAt, short isActive) {
		this.entityTypeId = entityTypeId;
		this.attributeSetId = attributeSetId;
		this.groupId = groupId;
		this.createdAt = createdAt;
		this.updatedAt = updatedAt;
		this.isActive = isActive;
	}

	public CustomerEntity(CoreWebsite coreWebsite, CoreStore coreStore,
			short entityTypeId, short attributeSetId, String email,
			short groupId, String incrementId, Date createdAt, Date updatedAt,
			short isActive, Set tags, Set salesruleCustomers,
			Set persistentSessions, Set reviewDetails,
			Set customerEntityDecimals, Set wishlists, Set catalogCompareItems,
			Set productAlertStocks, Set customerEntityDatetimes,
			Set customerEntityInts, Set productAlertPrices,
			Set salesFlatOrders, Set tagRelations, Set salesBillingAgreements,
			Set reportViewedProductIndexes, Set customerEntityVarchars,
			Set customerEntityTexts, Set customerAddressEntities,
			Set salesRecurringProfiles, Set salesruleCouponUsages,
			Set salesFlatOrderGrids, Set downloadableLinkPurchaseds,
			Set reportComparedProductIndexes) {
		this.coreWebsite = coreWebsite;
		this.coreStore = coreStore;
		this.entityTypeId = entityTypeId;
		this.attributeSetId = attributeSetId;
		this.email = email;
		this.groupId = groupId;
		this.incrementId = incrementId;
		this.createdAt = createdAt;
		this.updatedAt = updatedAt;
		this.isActive = isActive;
		this.tags = tags;
		this.salesruleCustomers = salesruleCustomers;
		this.persistentSessions = persistentSessions;
		this.reviewDetails = reviewDetails;
		this.customerEntityDecimals = customerEntityDecimals;
		this.wishlists = wishlists;
		this.catalogCompareItems = catalogCompareItems;
		this.productAlertStocks = productAlertStocks;
		this.customerEntityDatetimes = customerEntityDatetimes;
		this.customerEntityInts = customerEntityInts;
		this.productAlertPrices = productAlertPrices;
		this.salesFlatOrders = salesFlatOrders;
		this.tagRelations = tagRelations;
		this.salesBillingAgreements = salesBillingAgreements;
		this.reportViewedProductIndexes = reportViewedProductIndexes;
		this.customerEntityVarchars = customerEntityVarchars;
		this.customerEntityTexts = customerEntityTexts;
		this.customerAddressEntities = customerAddressEntities;
		this.salesRecurringProfiles = salesRecurringProfiles;
		this.salesruleCouponUsages = salesruleCouponUsages;
		this.salesFlatOrderGrids = salesFlatOrderGrids;
		this.downloadableLinkPurchaseds = downloadableLinkPurchaseds;
		this.reportComparedProductIndexes = reportComparedProductIndexes;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "entity_id", unique = true, nullable = false)
	public Integer getEntityId() {
		return this.entityId;
	}

	public void setEntityId(Integer entityId) {
		this.entityId = entityId;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "website_id")
	public CoreWebsite getCoreWebsite() {
		return this.coreWebsite;
	}

	public void setCoreWebsite(CoreWebsite coreWebsite) {
		this.coreWebsite = coreWebsite;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "store_id")
	public CoreStore getCoreStore() {
		return this.coreStore;
	}

	public void setCoreStore(CoreStore coreStore) {
		this.coreStore = coreStore;
	}

	@Column(name = "entity_type_id", nullable = false)
	public short getEntityTypeId() {
		return this.entityTypeId;
	}

	public void setEntityTypeId(short entityTypeId) {
		this.entityTypeId = entityTypeId;
	}

	@Column(name = "attribute_set_id", nullable = false)
	public short getAttributeSetId() {
		return this.attributeSetId;
	}

	public void setAttributeSetId(short attributeSetId) {
		this.attributeSetId = attributeSetId;
	}

	@Column(name = "email")
	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	@Column(name = "group_id", nullable = false)
	public short getGroupId() {
		return this.groupId;
	}

	public void setGroupId(short groupId) {
		this.groupId = groupId;
	}

	@Column(name = "increment_id", length = 50)
	public String getIncrementId() {
		return this.incrementId;
	}

	public void setIncrementId(String incrementId) {
		this.incrementId = incrementId;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "created_at", nullable = false, length = 19)
	public Date getCreatedAt() {
		return this.createdAt;
	}

	public void setCreatedAt(Date createdAt) {
		this.createdAt = createdAt;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "updated_at", nullable = false, length = 19)
	public Date getUpdatedAt() {
		return this.updatedAt;
	}

	public void setUpdatedAt(Date updatedAt) {
		this.updatedAt = updatedAt;
	}

	@Column(name = "is_active", nullable = false)
	public short getIsActive() {
		return this.isActive;
	}

	public void setIsActive(short isActive) {
		this.isActive = isActive;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "customerEntity")
	public Set getTags() {
		return this.tags;
	}

	public void setTags(Set tags) {
		this.tags = tags;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "customerEntity")
	public Set getSalesruleCustomers() {
		return this.salesruleCustomers;
	}

	public void setSalesruleCustomers(Set salesruleCustomers) {
		this.salesruleCustomers = salesruleCustomers;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "customerEntity")
	public Set getPersistentSessions() {
		return this.persistentSessions;
	}

	public void setPersistentSessions(Set persistentSessions) {
		this.persistentSessions = persistentSessions;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "customerEntity")
	public Set getReviewDetails() {
		return this.reviewDetails;
	}

	public void setReviewDetails(Set reviewDetails) {
		this.reviewDetails = reviewDetails;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "customerEntity")
	public Set getCustomerEntityDecimals() {
		return this.customerEntityDecimals;
	}

	public void setCustomerEntityDecimals(Set customerEntityDecimals) {
		this.customerEntityDecimals = customerEntityDecimals;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "customerEntity")
	public Set getWishlists() {
		return this.wishlists;
	}

	public void setWishlists(Set wishlists) {
		this.wishlists = wishlists;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "customerEntity")
	public Set getCatalogCompareItems() {
		return this.catalogCompareItems;
	}

	public void setCatalogCompareItems(Set catalogCompareItems) {
		this.catalogCompareItems = catalogCompareItems;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "customerEntity")
	public Set getProductAlertStocks() {
		return this.productAlertStocks;
	}

	public void setProductAlertStocks(Set productAlertStocks) {
		this.productAlertStocks = productAlertStocks;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "customerEntity")
	public Set getCustomerEntityDatetimes() {
		return this.customerEntityDatetimes;
	}

	public void setCustomerEntityDatetimes(Set customerEntityDatetimes) {
		this.customerEntityDatetimes = customerEntityDatetimes;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "customerEntity")
	public Set getCustomerEntityInts() {
		return this.customerEntityInts;
	}

	public void setCustomerEntityInts(Set customerEntityInts) {
		this.customerEntityInts = customerEntityInts;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "customerEntity")
	public Set getProductAlertPrices() {
		return this.productAlertPrices;
	}

	public void setProductAlertPrices(Set productAlertPrices) {
		this.productAlertPrices = productAlertPrices;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "customerEntity")
	public Set getSalesFlatOrders() {
		return this.salesFlatOrders;
	}

	public void setSalesFlatOrders(Set salesFlatOrders) {
		this.salesFlatOrders = salesFlatOrders;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "customerEntity")
	public Set getTagRelations() {
		return this.tagRelations;
	}

	public void setTagRelations(Set tagRelations) {
		this.tagRelations = tagRelations;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "customerEntity")
	public Set getSalesBillingAgreements() {
		return this.salesBillingAgreements;
	}

	public void setSalesBillingAgreements(Set salesBillingAgreements) {
		this.salesBillingAgreements = salesBillingAgreements;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "customerEntity")
	public Set getReportViewedProductIndexes() {
		return this.reportViewedProductIndexes;
	}

	public void setReportViewedProductIndexes(Set reportViewedProductIndexes) {
		this.reportViewedProductIndexes = reportViewedProductIndexes;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "customerEntity")
	public Set getCustomerEntityVarchars() {
		return this.customerEntityVarchars;
	}

	public void setCustomerEntityVarchars(Set customerEntityVarchars) {
		this.customerEntityVarchars = customerEntityVarchars;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "customerEntity")
	public Set getCustomerEntityTexts() {
		return this.customerEntityTexts;
	}

	public void setCustomerEntityTexts(Set customerEntityTexts) {
		this.customerEntityTexts = customerEntityTexts;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "customerEntity")
	public Set getCustomerAddressEntities() {
		return this.customerAddressEntities;
	}

	public void setCustomerAddressEntities(Set customerAddressEntities) {
		this.customerAddressEntities = customerAddressEntities;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "customerEntity")
	public Set getSalesRecurringProfiles() {
		return this.salesRecurringProfiles;
	}

	public void setSalesRecurringProfiles(Set salesRecurringProfiles) {
		this.salesRecurringProfiles = salesRecurringProfiles;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "customerEntity")
	public Set getSalesruleCouponUsages() {
		return this.salesruleCouponUsages;
	}

	public void setSalesruleCouponUsages(Set salesruleCouponUsages) {
		this.salesruleCouponUsages = salesruleCouponUsages;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "customerEntity")
	public Set getSalesFlatOrderGrids() {
		return this.salesFlatOrderGrids;
	}

	public void setSalesFlatOrderGrids(Set salesFlatOrderGrids) {
		this.salesFlatOrderGrids = salesFlatOrderGrids;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "customerEntity")
	public Set getDownloadableLinkPurchaseds() {
		return this.downloadableLinkPurchaseds;
	}

	public void setDownloadableLinkPurchaseds(Set downloadableLinkPurchaseds) {
		this.downloadableLinkPurchaseds = downloadableLinkPurchaseds;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "customerEntity")
	public Set getReportComparedProductIndexes() {
		return this.reportComparedProductIndexes;
	}

	public void setReportComparedProductIndexes(Set reportComparedProductIndexes) {
		this.reportComparedProductIndexes = reportComparedProductIndexes;
	}

}
